package com.ibeeking.gmc.global.service.common.dos;

import com.ibeeking.found.common.base.BaseDO;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * @ClassName DatasourceConfigDO
 * @Description
 * @Author ibeeking
 * @Date 2021-03-02 09:07
 **/
@Data
@TableName("gmc_datasource_config")
public class DatasourceConfigDO extends BaseDO implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableField(value = "name")
    private String name;

    /**
     * 数据源类型：0=模板数据源；1=租户数据源,模板数据源不可删除
     */
    @TableField(value = "type")
    private Integer type;

    /**
     * 数据库连接
     */
    @TableField(value = "host")
    private String host;

    /**
     * 端口
     */
    @TableField(value = "port")
    private Integer port;

    /**
     * 用户名
     */
    @TableField(value = "user_name")
    private String userName;

    /**
     * 密码
     */
    @TableField(value = "password")
    private String password;

    /**
     * 描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * 排序
     */
    @TableField(value = "sort")
    private Integer sort;

    /**
     * 是否启用，1-启用，0-未启用
     */
    @TableField(value = "publish_status")
    private Integer publishStatus;
}
